<template>
  <view>
    <my-login @onLoginSuccess="onLoginSuccess"></my-login>
  </view>
</template>

<script>
import MyLogin from '../../../components/my-login/my-login.vue'
export default {
  components: { MyLogin },

  name: 'login-page',
  data() {
    return {}
  },
  methods: {
    /**
     * 将返回上一个页面
     */
    onLoginSuccess() {
      uni.navigateBack({
        delta: 1
      })
    }
  }
}
</script>

<style lang="scss"></style>
